package models;

public class Offhand extends Item {

	private int defence;
	private double blockchance;
		
	public Offhand(String name, int value, int def, double block) {
		super(name, value);
		this.defence = def;
		this.blockchance = block;
	}
	
	public String toString() {
		String temp = this.name;
		temp = temp + "\n-Base defence: " + defence;
		temp = temp + "\n-Base block chance: " + blockchance;
		for(Effect e : effects) {
			temp = temp + "\n---" + e.getStat() + " " + e.getAmmount();
		}
		return temp;
	}
	
	public int getDefence() {
		return defence;
	}
	
	public void setDefence(int defence) {
		this.defence = defence;
	}
	
	public double getBlockchance() {
		return blockchance;
	}
	
	public void setBlockchance(double blockchance) {
		this.blockchance = blockchance;
	}

}
